package cz.semjobKB.conllx.api;

import java.util.List;

/**
 * The Interface declaring methods operating over paragraph
 */
public interface IParagraph extends ITextPart, ITextPartIterator {

	/**
	 * Gets the list of sentences
	 * 
	 * @param <T>
	 *            the generic type
	 * @return the list of sentences
	 */
	<T extends ISentence> List<T> getSentences();

	/**
	 * Sets the reference to the next paragraph
	 * 
	 * @param next
	 *            the new next paragraph
	 */
	void setNextParagraph(IParagraph next);
}